<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Add User</title>

</head>

<body>
<h1>Add User</h1>
<c:url var="viewUsersUrl" value="/users" />
<a href="${viewUsersUrl}">View All Users</a>

<br /><br />
<c:url var="saveUserUrl" value="/users/save" />
<form:form modelAttribute="user" method="POST" action="${saveUserUrl}">
	<form:label path="username">Username:</form:label>
	<form:input path="username"/><br />
	<form:label path="password">Password:</form:label>
	<form:input path="password"/><br />
	<input type="submit" value="Save User" />
</form:form>

</body>
</html>